home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsfcmap.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.7 KB  |  47 lines

  1. /* Copyright (C) 1997, 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsfcmap.h,v 1.4 2000/09/21 03:02:03 lpd Exp $ */
  20. /* CMap data definition */
  21. /* Requires gsstruct.h */
  22.  
  23. #ifndef gsfcmap_INCLUDED
  24. #  define gsfcmap_INCLUDED
  25.  
  26. #include "gsccode.h"
  27.  
  28. /* Define the abstract type for a CMap. */
  29. #ifndef gs_cmap_DEFINED
  30. #  define gs_cmap_DEFINED
  31. typedef struct gs_cmap_s gs_cmap_t;
  32. #endif
  33.  
  34. /* ---------------- Procedural interface ---------------- */
  35.  
  36. /*
  37.  * Decode a character from a string using a CMap, updating the index.
  38.  * Return 0 for a CID or name, N > 0 for a character code where N is the
  39.  * number of bytes in the code, or an error.  Shift the decoded bytes into
  40.  * *pchr.  For undefined characters, set *pglyph = gs_no_glyph and return 0.
  41.  */
  42. int gs_cmap_decode_next(P6(const gs_cmap_t *pcmap, const gs_const_string *str,
  43.                uint *pindex, uint *pfidx,
  44.                gs_char *pchr, gs_glyph *pglyph));
  45.  
  46. #endif /* gsfcmap_INCLUDED */
  47.